<!DOCTYPE html>
<html lang="en">
<head>
    <title>执行日志</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../build/common/base.css" rel="stylesheet">
    <script type="text/javascript" src="../../build/common/base.js"></script>
    <script type="text/javascript" src="../../build/common/gridList.js"></script>
</head>
<body>

<div class="panel panel-default search-panel">
    <div class="panel-body">
        <form id="searchForm" class="form-horizontal">
            <div class="form-group">
                <label class="control-label col-sm-1">执行耗时</label>
                <div class="col-sm-1">
                    <input type="text" class="form-control" id="run_ms^VGE">
                </div>
                <div class="col-sm-1">
                    <input type="text" class="form-control" id="run_ms^VLE">
                </div>
                
                <label class="control-label col-sm-1">执行时间</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" id="start_time^VGE">
                </div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" id="start_time^VLE">
                </div>

                <div class="col-sm-3" style="text-align:left;">
                    <button type="button" style="margin-left:50px" class="btn btn-primary fa-search">查询</button>
                    <button type="button" style="margin-left: 50px" class="btn btn-primary fa-rotate-left">重置</button>
                </div>
            </div>

        </form>

    </div>
</div>
    <table ab-grid data-id-field="id" data-url="/sys/scheduleJob/log/list?jobId={id}">
        <thead>
        <tr>
            <th data-checkbox="true">ID</th>
            <th data-field="runState" data-formatter="labelFormatter" data-value-style="SUC-成功-success,FAIL-失败-danger," >执行状态</th>
            <th data-field="runMs">执行耗时(ms)</th>
            <th data-field="startTime">执行启动时间</th>
            <th data-field="endTime">执行结束时间</th>
            <th data-field="script" data-title="管理" data-formatter="innerHtmlFormatter">
                <span class='btn btn-outline btn-primary fa fa-street-view' openDialog="详细" qtip='详细' url="sysJobLogView.html?id={id}"></span>
            </th>
        </tr>
        </thead>
    </table>
    <script type="text/javascript">
    	laydate.render({ elem: 'input[id="start_time^VGE"]', type: 'datetime' });
    	laydate.render({ elem: 'input[id="start_time^VLE"]', type: 'datetime' });
    </script>
</body>
</html>